package task1;
import java.util.Arrays;
public class TestArgs {
    public static void main(String[] args) {
        boolean sum = false;
        int[] a = new int[9];

        for(int i = 0; i < args.length; ++i) {
            a[i] = Integer.parseInt(args[i]);
        }

        int var4 = clSum(a);
        System.out.println(var4);
    }

    public static int clSum(int[] arr) {
        int j = arr.length;
        if(j == 1) {
            return arr[0];
        } else {
            int[] b = Arrays.copyOf(arr, arr.length - 1);
            return clSum(b) + arr[j - 1];
        }
    }
}
